package com.benshou.bsoa.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


/*
 * 费控平台配置类
 * @author hyh
 */

@Data
@Component
@ConfigurationProperties(prefix = "feikong")
public class FeikongProperties {

    /**
     * 费控平台账号
     */
    private String account;
    /**
     * 费控平台秘钥
     */
    private String key;

    /**
     * 费控接口地址
     */
    private ServiceCode serviceCode;

    @Data
    public static class ServiceCode {
        /**
         * 法人公司代码
         */
        private String company;
        /**
         * 项目代码
         */
        private String project;
        /**
         * 项目报销单
         */
        private String reimbursement;
        /**
         * 项目付款单
         */
        private String payment;
    }
}
